home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1997 February / PC Plus Super CD (Issue 124) (PCP124-2-97) (February 1997).iso / ifftrial / uninstal.inf < prev    next >
Encoding:
INI File  |  1996-09-03  |  12.6 KB  |  479 lines

  1. ;****************************************************************************
  2. ;* Internet FastFind uninstallation Script                                  *
  3. ;****************************************************************************
  4.  
  5. ; Script Switch Numbers
  6.  
  7. ;  SWITCH_IS_NT40                             01
  8. ;  SWITCH_IS_WIN95                            02
  9.  
  10. ;  SWITCH_FULL_UNINSTALL                      10
  11.  
  12. ;  SWITCH_SHOW_WAIT_DIALOG                    15
  13.  
  14. ;  SWITCH_SELECTED_NIC                        20
  15. ;  SWITCH_SELECTED_WEBFIND                    21
  16. ;  SWITCH_SELECTED_NOTIFY                     22
  17. ;  SWITCH_SELECTED_FTP                        23
  18. ;  SWITCH_SELECTED_ZIP                        24
  19. ;  SWITCH_SELECTED_WEBLAUNCH                  25
  20. ;  SWITCH_SELECTED_PATCHCONNECT               26
  21. ;  SWITCH_SELECTED_NETFILEFIND                27
  22.  
  23. ;  SWITCH_PREVIOUS                            50
  24. ;  SWITCH_NEXT                                51
  25. ;  SWITCH_CANCEL                              52
  26.  
  27. ;  SWITCH_EXIT_CONTINUE                       96
  28. ;  SWITCH_EXIT_RESTART                        97
  29. ;  SWITCH_EXIT_REBOOT                         98
  30.  
  31.  
  32. [InstallVersion]
  33. 4.0
  34.  
  35. [process]
  36. Uninstall()
  37. EnableForceWrite()
  38. EnableOverwrite()
  39. EnableWin95Shell()
  40. Enable256Advos()
  41. SetActiveCopy(MainCopy, uninstal.inf)
  42. Backup(CustDLLCopy)
  43. Backup(SettingsDLLCopy)
  44. ;Bitmaps(Bitmaps)
  45. CallProc(InitCustomDLL)
  46.  
  47. #if(switch01)
  48.    switch53=CallProcEx(bIsAdmin)
  49.    #ifnot(switch53)
  50.       CallProc(MB_NeedAdminToUninstall)
  51.       goto(Exit)
  52.    #endif
  53. #endif
  54.  
  55. CallProc(KillRunningTasks)
  56. ;ResetTarget(SourceTarget)
  57. CallProc(SetTargetToSource)
  58.  
  59. switch10=TRUE
  60. WizardPanel(WizUninstallWelcome, siwifftr.dll)
  61. WizardProcessPanel()
  62.  
  63. ; NOTE - the following are for FULL uninstall
  64. #if(switch10)
  65.    SelectOption(RequiredFiles)
  66.    SelectOption(NIC)
  67.    SelectOption(WebFind)
  68.    SelectOption(Notify)
  69.    SelectOption(FTP)
  70.    SelectOption(Zip)
  71.    SelectOption(WebLaunch)
  72.    SelectOption(NetFileFind)
  73.    FullUninstall()
  74. #else
  75.    MessageBox(MB_CustomUninstallNotSupported)
  76.    SelectOption(RequiredFiles)
  77.    SelectOption(NIC)
  78.    SelectOption(WebFind)
  79.    SelectOption(Notify)
  80.    SelectOption(FTP)
  81.    SelectOption(Zip)
  82.    SelectOption(WebLaunch)
  83.    SelectOption(NetFileFind)
  84.    switch10=TRUE
  85.    FullUninstall()
  86. #endif
  87.  
  88. Uncopy()
  89.  
  90. CallProc(HourglassOn)
  91.  
  92. ;switch15=TRUE
  93.  
  94. switch53=IsOptionSelected(NIC)
  95. #if(switch53)
  96.    CallProc(RemoveSettingsNIC)
  97.    Delete(LeftoversNIC)
  98. #endif
  99.  
  100. switch53=IsOptionSelected(WebFind)
  101. #if(switch53)
  102.    CallProc(RemoveSettingsWebFind)
  103.    Delete(LeftoversWebFind)
  104. #endif
  105.  
  106. switch53=IsOptionSelected(Notify)
  107. #if(switch53)
  108.    CallProc(RemoveSettingsNotify)
  109.    Delete(LeftoversNotify)
  110. #endif
  111.  
  112. switch53=IsOptionSelected(FTP)
  113. #if(switch53)
  114.    CallProc(RemoveSettingsFTP)
  115. #endif
  116.  
  117. switch53=IsOptionSelected(Zip)
  118. #if(switch53)
  119.    CallProc(RemoveSettingsZip)
  120. #endif
  121.  
  122. switch53=IsOptionSelected(WebLaunch)
  123. #if(switch53)
  124.    CallProc(RemoveSettingsWebLaunch)
  125.    Delete(LeftoversWebLaunch)
  126. #endif
  127.  
  128. switch53=IsOptionSelected(NetFileFind)
  129. #if(switch53)
  130.    CallProc(RemoveSettingsNetFileFind)
  131.    Delete(LeftoversNetFileFind)
  132. #endif
  133.  
  134. switch53=IsOptionSelected(PatchConnect)
  135. #if(switch53)
  136.    CallProc(RemoveSettingsPatchConnect)
  137.    Delete(LeftoversPatchConnect)
  138. #endif
  139.  
  140. #if(switch10)
  141.    CallProc(UnregisterProductInfo)
  142.    Delete(LeftoversFull)
  143. #endif
  144.  
  145. CallProc(HourglassOff)
  146.  
  147. CallProc(DeleteProgramGroup)
  148.  
  149.  
  150. #if(switch02)
  151.    switch96=FALSE
  152.    switch97=TRUE
  153.    switch98=FALSE
  154. #else
  155.    switch96=FALSE
  156.    switch97=FALSE
  157.    switch98=TRUE
  158. #endif
  159.  
  160. WizardPanel(WizUninstallFinish, siwifftr.dll)
  161. WizardProcessPanel()
  162.  
  163. CallProc(DeleteDirectories)
  164.  
  165. :Exit
  166. CallProc(RefreshDesktop)
  167. #if(switch97)
  168.    switch53=CallProcEx(bRestartWindows)
  169.    #if(switch53)
  170.       ExitRestart()
  171.    #else
  172.       Exit()
  173.    #endif
  174. #endif
  175.  
  176. #if(switch98)
  177.    switch53=CallProcEx(bRebootSystem)
  178.    #if(switch53)
  179.       RebootNT()
  180.    #else
  181.       Exit()
  182.    #endif
  183. #endif
  184.  
  185. Exit()
  186.  
  187. ;***************************************************************************
  188. ;* SubProc Executed When Install Takes Over As Shell
  189. ;***************************************************************************
  190.  
  191. [SubProc]
  192. Backup(CustDLLCopy)
  193. Backup(SettingsDLLCopy)
  194. ResetTarget(SourceTarget)
  195. Return()
  196.  
  197. ;***************************************************************************
  198. ;* Dialog Info                                                             *
  199. ;***************************************************************************
  200.  
  201. ;***************************************************************************
  202. ;* Message Text                                                            *
  203. ;***************************************************************************
  204.  
  205. [cancel]
  206. caption = "Exit Uninstall?"
  207. text    = "Are you sure that you want to exit?"
  208.  
  209. [cancelshell]
  210. caption = "Exit Uninstall?"
  211. "You have chosen to cancel the Uninstall"
  212. "program. In order to reset the Windows"
  213. "environment, Uninstall will also close"
  214. "Windows. Are you sure you want to exit?"
  215.  
  216. [NotImplemented]
  217. caption = "Feature Not Implemented"
  218. "This feature has not yet been implemented."
  219.  
  220. [MB_CustomUninstallNotSupported]
  221. caption="Internet FastFind Uninstall"
  222. "Custom uninstall is not yet supported. A full uninstall will be performed."
  223.  
  224. ;***************************************************************************
  225. ;* Set Directories                                                         *
  226. ;***************************************************************************
  227.  
  228. [SourceTarget]
  229. reset = TARGET1
  230. location = %s, SOURCE
  231.  
  232.  
  233. ;***************************************************************************
  234. ;* Delete Files                                                            *
  235. ;***************************************************************************
  236.  
  237. [LeftoversFull]
  238. pipedlg.dat,   TARGET1
  239. modem.id,      TARGET1
  240. $flecomp.tmp,  TARGET1
  241. wintdist.exe,  TARGET1
  242. zip.gid,       TARGET1
  243. zip.fts,       TARGET1
  244. zip.ftg,       TARGET1
  245. ftp.gid,       TARGET1
  246. ftp.fts,       TARGET1
  247. ftp.ftg,       TARGET1
  248. system.iff,    WINDOWS
  249. user.iff,      WINDOWS
  250.  
  251. [LeftoversNIC]
  252. iff.gid, TARGET1
  253. iff.fts, TARGET1
  254. iff.ftg, TARGET1
  255.  
  256. [LeftoversWebFind]
  257. webfind.gid, TARGET1
  258. webfind.fts, TARGET1
  259. webfind.ftg, TARGET1
  260.  
  261. [LeftoversNotify]
  262. notify.gid, TARGET1
  263. notify.fts, TARGET1
  264. notify.ftg, TARGET1
  265.  
  266. [LeftoversPatchConnect]
  267. pconnect.gid, TARGET1
  268. pconnect.fts, TARGET1
  269. pconnect.ftg, TARGET1
  270.  
  271. [LeftoversNetFileFind]
  272. netff.gid, TARGET1
  273. netff.fts, TARGET1
  274. netff.ftg, TARGET1
  275.  
  276. [LeftoversWebLaunch]
  277. wlaunch.gid, TARGET1
  278. wlaunch.fts, TARGET1
  279. wlaunch.ftg, TARGET1
  280.  
  281. [CustDLLDel]
  282. siwifftr.dll,  TEMPDIR
  283.  
  284. ;***************************************************************************
  285. ;* External function calls (DLL)                                           *
  286. ;***************************************************************************
  287.  
  288. [InitCustomDLL]
  289. dll = siwifftr.dll
  290. function = InitCustomDLL
  291.  
  292. [TestFunction]
  293. dll = siwifftr.dll
  294. function = TestFunction
  295.  
  296. [UnregisterProductInfo]
  297. dll=siwifftr.dll
  298. function=UnregisterProductInfo
  299.  
  300. [KillRunningTasks]
  301. dll=siwifftr.dll
  302. function=KillRunningTasks
  303.  
  304. [DeleteDirectories]
  305. dll=siwifftr.dll
  306. function=DeleteDirectories
  307.  
  308. [HourglassOn]
  309. dll=siwifftr.dll
  310. function=HourglassOn
  311.  
  312. [HourglassOff]
  313. dll=siwifftr.dll
  314. function=HourglassOff
  315.  
  316. [RemoveSettingsNIC]
  317. dll=siwifftr.dll
  318. function=RemoveSettingsNIC
  319.  
  320. [RemoveSettingsWebFind]
  321. dll=siwifftr.dll
  322. function=RemoveSettingsWebFind
  323.  
  324. [RemoveSettingsNotify]
  325. dll=siwifftr.dll
  326. function=RemoveSettingsNotify
  327.  
  328. [RemoveSettingsFTP]
  329. dll=siwifftr.dll
  330. function=RemoveSettingsFTP
  331.  
  332. [RemoveSettingsZip]
  333. dll=siwifftr.dll
  334. function=RemoveSettingsZip
  335.  
  336. [RemoveSettingsWebLaunch]
  337. dll=siwifftr.dll
  338. function=RemoveSettingsWebLaunch
  339.  
  340. [RemoveSettingsNetFileFind]
  341. dll=siwifftr.dll
  342. function=RemoveSettingsNetFileFind
  343.  
  344. [RemoveSettingsPatchConnect]
  345. dll=siwifftr.dll
  346. function=RemoveSettingsPatchConnect
  347.  
  348. [SetTargetToSource]
  349. dll=siwifftr.dll
  350. function=SetTargetToSource
  351.  
  352. [bRestartWindows]
  353. dll=siwifftr.dll
  354. function=bRestartWindows
  355.  
  356. [bRebootSystem]
  357. dll=siwifftr.dll
  358. function=bRebootSystem
  359.  
  360. [bIsAdmin]
  361. dll=siwifftr.dll
  362. function=bIsAdmin
  363.  
  364. [MB_NeedAdminToUninstall]
  365. dll=siwifftr.dll
  366. function=MB_NeedAdminToUninstall
  367.  
  368. [DeleteProgramGroup]
  369. dll=siwifftr.dll
  370. function=DeleteProgramGroup
  371.  
  372. ;***************************************************************************
  373. ;* Misc install functions                                                  *
  374. ;***************************************************************************
  375.  
  376. [Bitmaps]
  377. color = %s\symantec.rle, -1, -1
  378.  
  379. ;***************************************************************************
  380. ;* File backup                                                             *
  381. ;***************************************************************************
  382.  
  383. [CustDLLCopy]
  384. siwifftr.dll, siwifftr.dll, SOURCE, TEMPDIR
  385.  
  386. [SettingsDLLCopy]
  387. settings.dll, settings.dll, SOURCE, TEMPDIR
  388.  
  389. ;***************************************************************************
  390. ;* SetShell section                                                        *
  391. ;***************************************************************************
  392.  
  393. [SetShell]
  394. WinIniName = win.ini
  395. SystemIniName = system.ini
  396. Message = MessageBox.SetShellMessage
  397. SysSectionName = boot
  398. WinSectionName = windows
  399. shell = %s\setup.exe
  400. load =
  401. run =
  402. SetShellIfLoaded=
  403. Backup = Backup.SetShellSave
  404. Restore = Backup.SetShellRestore
  405. Active=no
  406. IfActiveList=LoadedList
  407. SubProcess=SubProc
  408.  
  409. [SetShellSave]
  410. win.ini, win.siw, WINDOWS, WINDOWS
  411. system.ini, system.siw, WINDOWS, WINDOWS
  412.  
  413. [SetShellRestore]
  414. system.siw, system.ini, WINDOWS, WINDOWS
  415. win.siw, win.ini, WINDOWS, WINDOWS
  416.  
  417. [_LoadedList]
  418.  
  419. [SetShellMessage]
  420. caption  =  "Internet FastFind Uninstall"
  421. "Welcome to Internet FastFind Uninstall.  Please select OK to allow Uninstall to restart Windows and continue.  Press Cancel to exit Uninstall."
  422.  
  423.  
  424. ;***************************************************************************
  425. ;* Groups                                                                  *
  426. ;***************************************************************************
  427.  
  428. [MainGroup]
  429. "Internet FastFind", nn.grp
  430.  
  431. [Internet FastFind]
  432. "WebFind",                          webfind.exe,   WebFind,,TARGET1,,,,TARGET1
  433. "Internet FastFind",                iff.exe,       NIC,,TARGET1,,,,TARGET1
  434. "Notify",                           notify.exe,    Notify,,TARGET1,,,,TARGET1
  435. "PatchConnect",                     pconnect.exe,  PatchConnect,,TARGET1,,,,TARGET1
  436. "NetFileFind",                      netff.exe,     NetFileFind,,TARGET1,,,,TARGET1
  437. "Internet FastFind Release Notes",  readme.txt,    RequiredFiles,,TARGET1,,,,TARGET1
  438.  
  439. ;***************************************************************************
  440. ;* Copy                                                                    *
  441. ;***************************************************************************
  442.  
  443. [MainCopy]
  444. ;SelectionType.ComponentName,    "SelectionDlgText",               Size,    Required?,<Files>?,ShowItem?
  445.  
  446. CopyMain.RequiredFiles,          "Required Files - %ldK",            0,       Y,          N,          Y
  447. CopyMain.NIC,                    "Internet FastFind - %ldK",         0,       N,          N,          Y
  448. CopyMain.WebFind,                "WebFind - %ldK",                   0,       N,          N,          Y
  449. CopyMain.Notify,                 "Notify - %ldK",                    0,       N,          N,          Y
  450. CopyMain.FTP,                    "EasyFTP - %ldK",                   0,       N,          N,          Y
  451. CopyMain.Zip,                    "EasyZIP - %ldK",                   0,       N,          N,          Y
  452. CopyMain.WebLaunch,              "WebLaunch - % ldK",                0,       N,          N,          Y
  453. CopyMain.PatchConnect,           "PatchConnect - % ldK",             0,       N,          N,          Y
  454. CopyMain.NetFileFind,            "NetFileFind - % ldK",              0,       N,          N,          Y
  455.  
  456.  
  457. ;***************************************************************************
  458. ;* Wizard Panels                                                           *
  459. ;***************************************************************************
  460.  
  461. [WizUninstallWelcome]
  462. Caption="Internet FastFind Uninstall"
  463. Title="Welcome to Uninstall"
  464. DlgProc=SIW_ProductDlgProc
  465. ResourceId=1005
  466. Bitmap16=900
  467. PanelDataProc=DefaultDataProc
  468. PanelFlags=first
  469.  
  470. [WizUninstallFinish]
  471. Caption="Internet FastFind Uninstall"
  472. Title="Uninstall Complete"
  473. DlgProc=SIW_ProductDlgProc
  474. ResourceId=1004
  475. ;Bitmap16=906
  476. Bitmap16=900
  477. PanelDataProc=DefaultDataProc
  478. PanelFlags=first+last+finish
  479.